<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>我的下载</title>
	<link rel="stylesheet" type="text/css" href="../css/base.css">
	<link rel="stylesheet" href="../css/css3.css">
	<!--<link rel="stylesheet" href="css/css2.css">-->
	<script src="../js/jquery.1.7.2.js"></script>
    <script src="../js/jquery.page.js"></script>
	<script src="../js/side.js"></script>
	<script src="../js/base.js"></script>
</head>

<body>
	<!-- header -->
		<#include "../common/person_header.ftl">
	<!-- e header -->
	<!-- main -->
	<div class="main">
		<div class="wrap">
			<div class="address">
				<a href="/search_result">首页</a>>我的下载
			</div>
			<div class="group pb55 clearfix">
                <div class="collectSide fl">
                    <div class="topper">
                        <i class="set"></i>
                        <img src="${user.imgUrl}" alt="" class="pic">
                        <div class="name">${user.name}</div>
                    </div>
                    <ul class="nav">
                        <li><a href="/person_collect"><i class="icon-1"></i>我的收藏</a></li>
                        <li class="on"><a href="/person_down"><i class="icon-2"></i>我的下载</a></li>
                        <li><a href="/person_setting"><i class="icon-4"></i>帐号设置</a></li>
                    </ul>
                </div>
                <div class="mainbd2 fr Collect download">
					<div class="topper">
						<h2 class="fs16">我的下载</h2>
                        <a href="/empty_down"><i class="btn clearClollect">清空记录</i></a>
					</div>
					<div class="bd">
						<ul class="list4 ">
							<#list downloads as download>
								<li>
									<div class="title"><a href="">${download.title}</a></div>
									<div class="data">
										<span>报纸名称：${download.address}</span>
										<span>作者：${download.author}	</span>
										<span>时间：${download.createTime} </span>
									</div>
									<a href="/delete_down?id=${download.id}"><div class="cancel">删除记录</div></a>
								</li>
							</#list>
						</ul>
                        <div class="page3">
                        </div>
                        <script>
                            $(".page3").createPage({
                                pageCount:${pageTotal},
                                current:${page}+1,
                                backFn:function(p){
                                    p = p-1;
                                    window.location.href="/person_down?page=" + p;
                                }
                            });
                        </script>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!-- e main -->
    <!-- footer -->
	<#include "../common/footer.ftl">
    <!-- e footer -->


</body>
</html>